﻿<%@ Page Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="Doanh-Nghiep.aspx.cs" Inherits="Doanh_Nghiep" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title><asp:Literal runat="server" ID="ltrTieude"> </asp:Literal>
    - <%=Common.tieude %></title>
    <link rel="stylesheet" type="text/css" href="CSS/style-dn.css">    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="updatePanelDn" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="doanhnghiep-content">
                <div class="menu-dn-content">
                    <ul>
                        <asp:Literal ID="idLoaiMH" runat="server"></asp:Literal>
                    </ul>
                </div>
                <div style="bottom: 0px; clear: both; padding-left: 10px;">
                    <div class="nav-head-tc" style="color: Maroon; font-weight: bold">
                        <cc1:Pager ID="Pager1" runat="server" PreviousClause="Lùi" NextClause="Tiếp" LastClause="Cuối"
                            FirstClause="Đầu" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                            ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang" OfClause=" / "
                            PageSize="12" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True" />
                    </div>
                </div>
                <div class="sub-dn-content">
                    <!-- item 1 -->
                    <asp:DataList ID="datalistMathang" runat="server" RepeatColumns="4" RepeatLayout="Flow">
                        <ItemTemplate>
                            <div class="item-dn-content">
                                <div class="img-item-dn-content">
                                    <a href='<%# Eval("Id") + "_" + Eval("IdSubMatHang") + "_" + GetTieuDe(Eval("TieuDe")) + "_DoanhNghiep.aspx" %>'>
                                        <img src='<%# "Upload/MatHang/" + Eval("AnhDaiDien") %>' alt="IMAGE 1" title='<%#Eval("TomTat") %>'/></a>
                                </div>
                                <div class="nd-item-dn-content">
                                    <a href="">
                                        <p class="title-black">
                                            <%# Eval("TieuDe") %></p>
                                    </a>
                                </div>
                                <%--<div class="gg-item-dn-content">
                                    <span>
                                        <%# "-" + Eval("PhanTram") %>%</span>
                                </div>--%>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                    <!-- item 1 -->
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        $(".ul-menu-bar li a").each(function () {
            if ($(this).text() === "DOANH NGHIỆP") {
                $(this).addClass("title-black");
            }
        });

        $(".menu-dn-content ul li").each(function () {
            var title = $(document).attr("title");
            var arr_title = title.split(" - ");            
            if ($(this).text() === arr_title[0]) {                
                $(this).css("background-color", "#FEBF0F");
            } else {
                return;
            }
        });
    </script>
</asp:Content>
